/* -*- mode: c++; coding: utf-8-unix -*-
 */

#ifndef _LOG_H
#define _LOG_H

#include "log4cxx/logger.h"

void initializeLogging();

using namespace log4cxx;

#define USELOG() LoggerPtr logger(Logger::getLogger("MyApp"))

#define LOG_TRACE(a) LOG4CXX_TRACE(logger, a)
#define LOG_DEBUG(a) LOG4CXX_DEBUG(logger, a)
#define LOG_INFO(a) LOG4CXX_INFO(logger, a)
#define LOG_WARN(a) LOG4CXX_WARN(logger, a)
#define LOG_ERROR(a) LOG4CXX_ERROR(logger, a)
#define LOG_FATAL(a) LOG4CXX_FATAL(logger, a)


#endif //_LOG_H
